<layout name='layout' />
<script language="JavaScript" src="__PUBLIC__/JS/jquery.columnfilters.js"></script>


<script>
	$(function() {
		$( ".maildiv tr" ).click(function(){window.location.href="../Message/read?mid="+$(this).find("td:eq(5)").text();});
		$( ".projdiv tr" ).click(function(){window.location.href="../ProjectManage/select?pid="+$(this).find("td:eq(0)").text();});
		
		$( "#pname" ).autocomplete({
			source: "../ProjectManage/checkProjName",
			minLength: 1,
		});
		$( "#managername" ).autocomplete({
			source: "../Message/checkName",
			minLength: 1,
		});
		$( "#fund" ).autocomplete({
			source: "../ProjectManage/checkFundName",
			minLength: 1,
		});
		
		$('table#mailtable').columnFilters({alternateRowClassNames:['rowa','rowb'], excludeColumns:[4,5]});

		
		
	});
	
	</script>
	
<h2>公告</h2>
<ul>
<li> <a href="#" title="Hmm....讨厌">通知一</a> </li>
<li> 通知二</li>
<li> 通知三 </li>
</ul>

<hr size=8 style="COLOR: #ffd306;border-style:outset;width:490;"> 
<!--分隔符-->
<h2>未读信息</h2>
<present name="maillist">
<div class="maildiv">
<table  id="mailtable" class="tablesorter" >
   	<thead>
   	 <tr>
        <th width=20%>时间</th>
        <th>发件人</th>
		<th>主题</th>
        <th>状态</th>
<!--        <th>内容</th>-->
		<th>操作</th>
		<th  style="display:none">mid</th>
    </tr>
    </thead>
        <tfoot></tfoot>
    <tbody>
    <volist name="maillist" id="vo">
    <tr>
        <td>{$vo['senddate']|date='Y-m-d H:i',###}</td>
		<td>{$vo['sendname']}</td>
        <td>{$vo['title']}</td>
        <td><eq name="vo['state']" value="0" >未读
        <else /> 已读
        </eq>
        </td>
<!--        <td>{$vo['content']}</td>-->
 <td><a href="../Message/sendformajax?getname={$vo['sendname']}&title={$vo['title']}">回复消息</a></li></td>
 <td  style="display:none">{$vo['mid']}</td></tr>
    </volist>
    </tbody>
</table>
</div>
<div>{$page1}</div>
<else />
<h3>没有未读邮件</h3> 
</present>

<hr size=8 style="COLOR: #ffd306;border-style:outset;width:490;"> 
<!--分隔符-->
<h2>项目信息</h2>
<present name="projlist">
<div class="ui-widget">
	<form action="__URL__/home" method="GET">
    <label for="tags" >项目名: </label>
	<input id="pname" name="pname" type="text" />
  


    <label for="tags" >项目经理名称: </label>
	<input id="managername" name="managername" type="text" />
    


    <label for="tags" >已投基金: </label>
	<input id="fund" name="fund" type="text" />
    <input type="submit" value="搜索">
    </form>
</div>
<div class="projdiv">
<table  id="projecttable" class="tablesorter" >
	<thead>
    <tr>
    	<th  style="display:none">pid</th>
        <th>项目名</th>
        <th>项目经理</th>
		<th>主管合作人</th>
        <th>已投基金</th>
        <th>状态</th>
		
    </tr>
    </thead> 
    <tbody> 
    <volist name="projlist" id="vo">
    <tr>
    	<td  style="display:none">{$vo['pid']}</td>
        <td>{$vo['pname']}</td>
		<td>{$vo['managername']}</td>
        <td>{$vo['partnername']}</td>
        <td>{$vo['fund']}</td>
        <td>{$vo['state']}</td>
    </tr>
    </volist>
    </tbody> 
</table>
</div>
<div>{$page2}</div>
<else />
<h2>没有符合条件的项目</h2> 
</present>